using System;
using System.Collections.Generic;
using System.ServiceModel;
using WcfService1.DTO;

namespace WcfService1
{
    // NOTE: You can use the "Rename" command on the "Refactor" MutasiPallet to change the interface name "IMutasiPalletServices" in both code and config file together.
    [ServiceContract]
    public interface IMutasiPalletServices
    {
        [OperationContract]
        List<MutasiPalletDTO> GetList(int page, out long recordCount, string sortProperty = null,
                                      string sortType = "ASC");

        [OperationContract]
        bool Save(MutasiPalletDTO MutasiPallet);

        [OperationContract]
        bool Delete(MutasiPalletDTO MutasiPallet);

        [OperationContract]
        List<MutasiPalletDTO> GetListByCriteria(Dictionary<String, Object> criteria, string expression, int page,
                                                out long recordCount);

        [OperationContract]
        List<MutasiPalletDTO> GetAllMutasiPallet();

        [OperationContract]
        MutasiPalletDTO GetMutasiPallet(string kodeMutasiPallet);

        [OperationContract]
        List<MutasiPalletDTO> GetMutasiPalletList(string kodeMutasiPallet);

        [OperationContract]
        bool DeleteDetail(MutasiPalletDetailDTO MutasiPalletDetailDTO);

        [OperationContract]
        string GetLastNoMutasi();

        [OperationContract]
        bool SendEmail(MutasiPalletDTO obj);
    }
}